<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网-新闻列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		/*background-image: url("images/bdybg.jpg");*/
		color: #333;
	}
	img {
		vertical-align: top;
	}
	.companyList {
		width: 980px;
		text-align: left;
		padding: 10px;
		background-color: #FFFFFF;
		border-top-left-radius: 20px;
		border-top-right-radius: 20px;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
		font-size: 12px;
		/*background-image: url("../images/grey.gif");*/
	}
	.companyList ul {
		list-style: none;	
	}
	.companyList li {
		/*display: block;*/
		padding: 2px 0px;
		margin: 2px 0px; 
	}
	</style>
  </head>
  <body>
  <%@ include file="../header.jsp" %>
    <center>
    <div style="width:980px;text-align:left;margin:10px;">
    	<div style="float:left;">
		<img alt="骑驴网" src="images/qilv.png">
	</div>
	<div style="float:left;font-size:24px;font-weight:bold;padding:22px 0px 5px 15px;">
		${param.topic=='h'?'热门新闻':''}
		${param.topic=='w'?'国际新闻':''}
		${param.topic=='n'?'国内新闻':''}
		${param.topic=='t'?'电脑科技':''}
		${param.topic=='s'?'体育新闻':''}
		${param.topic=='m'?'健康健身':''}
		${param.topic=='p'?'国家政策':''}
		${param.topic=='e'?'娱乐新闻':''}
		${param.topic=='b'?'财经新闻':''}
	</div>
	<div style="border:0px;border-top:2px solid #4273B3;clear:both;"></div>
    <div id="newsResult" class="companyList">
    	<img src="images/icon/loading.gif">正在搜索...
    </div>
    </center>
    <%@ include file="../tailer.jsp" %>
  </body>
<script type="text/javascript" src="js/javer.js"></script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript">
	// Google 新闻
	function doGoogleNews(res) {
		$("newsResult").html(createNewItemFor(res));
	}
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/services/search/news?&v=1.0&topic=${param.topic}&rsz=large&callback=doGoogleNews"></script>
<%--
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0" charset="utf-8"></script>
 --%>
</html>
